package com.marvels.product.param.service;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptRiskFeeDTO;

import java.util.Map;

public interface RiskFeeService {
	PageInfo<McptRiskFeeDTO> getPageInfoByParam(Map<String, Object> param) throws MarvelsBusinessException;

	McptRiskFeeDTO getEntityByPrimaryKey(Long riskFeeId) throws MarvelsBusinessException;

	int insert(McptRiskFeeDTO dto) throws MarvelsBusinessException;

	int updateByPrimaryKey(McptRiskFeeDTO dto) throws MarvelsBusinessException;

	int updateStatus(McptRiskFeeDTO dto) throws MarvelsBusinessException;
	
	/**
	 * 根据主键删除记录
	 * @param dto
	 * @return
	 */
	public int deleteByPrimaryKey(McptRiskFeeDTO dto)throws MarvelsBusinessException; 
}
